package com.mj.haier.calc.repository;

import javax.transaction.Transactional;

import com.mj.haier.calc.domain.AzFinSettleCars;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


/**
 * Spring Data  repository for the AzFinSettleCars entity.
 */
@SuppressWarnings("unused")
@Repository
public interface AzFinSettleCarsRepository extends JpaRepository<AzFinSettleCars, Long> {

    @Modifying
    @Transactional
    @Query("update AzFinSettleCars a set a.settleEncourageAmounts = :#{#azFinSettleCars.settleEncourageAmounts}, "
        + " a.actualAmounts = :#{#azFinSettleCars.actualAmounts}, a.gmtModified = :#{#azFinSettleCars.gmtModified}, "
        + " a.modifiedUser = :#{#azFinSettleCars.modifiedUser}" 
        + " where a.id = :#{#azFinSettleCars.id}")
	int updateEncourageCash(@Param("azFinSettleCars") AzFinSettleCars azFinSettleCars);

}
